qemu: update to 10.0.0
authorVladimir Ermakov <[email protected]>
Thu, 22 May 2025 10:53:33 +0000 (12:53 +0200)
committerJosef Schlehofer <[email protected]>
Sun, 22 Jun 2025 07:54:52 +0000 (09:54 +0200)
- Update version to 10.0.0
- Update sanitizer config options names
- Add patch to fix meson cross compiler sanitiz check build

Signed-off-by: Vladimir Ermakov <[email protected]>
utils/qemu/Makefile
utils/qemu/patches/0001-configure-allow-disable-fortify_source.patch
utils/qemu/patches/0007-qga-invoke-separate-applets-for-guest-shutdown-modes.patch
utils/qemu/patches/0010-no-tests.patch
utils/qemu/patches/0011-meson-fix.patch [new file with mode: 0644]

index 520f7a2d7ab15de992f56b408b2f2cdc922928c3..cd8188a0f86389b9eca68c2bc8f8c51a56fc6cb1 100644 (file)
@@ -9,10 +9,10 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=qemu
-PKG_VERSION:=9.1.3
+PKG_VERSION:=10.0.0
 PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_HASH:=480a77a0ed13a9b39415f639aa020b4eb0d7cc5a52569510dfd830b3af1bac89
+PKG_HASH:=22c075601fdcf8c7b2671a839ebdcef1d4f2973eb6735254fd2e1bd0f30b3896
 PKG_SOURCE_URL:=https://download.qemu.org/
 PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=LICENSE tcg/LICENSE
@@ -419,7 +419,11 @@ CONFIGURE_ARGS +=                  \
        --disable-rbd                   \
        --disable-rdma                  \
        --disable-rutabaga-gfx          \
-       --disable-sanitizers            \
+       --disable-asan                  \
+       --disable-tsan                  \
+       --disable-ubsan                 \
+       --disable-fuzzing               \
+       --disable-safe-stack            \
        --$(if $(CONFIG_QEMU_SECCOMP),enable,disable)-seccomp           \
        --disable-smartcard             \
        --disable-snappy                \
index 1843df22a21619311c5d0371fd2ba6dd483780da..5b178eccbb31ef51abda9f0e741356ae2a4de6d7 100644 (file)
@@ -11,9 +11,9 @@ OpenWrt base build system decide flavor of fortify_source to use
 
 --- a/configure
 +++ b/configure
-@@ -757,6 +757,8 @@ for opt do
+@@ -780,6 +780,8 @@ for opt do
    ;;
-   --gdb=*) gdb_bin="$optarg"
+   --disable-rust) rust=disabled
    ;;
 +  --disable-fortify-source) fortify_source="no"
 +  ;;
index 9b1c572b4ccd844d48a4eb55c4fac52ba2cc167d..667bee81a85dd5f99a2a9506f4be9507108b8b64 100644 (file)
@@ -3,7 +3,7 @@ https://gitlab.alpinelinux.org/alpine/aports/-/blob/b720d51ec844d4754dd5b2908435
 ---
 --- a/qga/commands-posix.c
 +++ b/qga/commands-posix.c
-@@ -219,43 +219,21 @@ void qmp_guest_shutdown(const char *mode
+@@ -218,43 +218,21 @@ void qmp_guest_shutdown(const char *mode
      const char *shutdown_flag;
      Error *local_err = NULL;
  
index bf43c44d356ea246d8248cff6f8bdc6e9280aa72..c72bbda6c91499306796e2f2efddab3dfc8499fe 100644 (file)
@@ -1,6 +1,6 @@
 --- a/meson.build
 +++ b/meson.build
-@@ -3643,10 +3643,6 @@ subdir('common-user')
+@@ -3828,10 +3828,6 @@ subdir('common-user')
  subdir('bsd-user')
  subdir('linux-user')
  
@@ -9,9 +9,9 @@
 -subdir('tests/qtest/fuzz')
 -
  # accel modules
- tcg_real_module_ss = ss.source_set()
- tcg_real_module_ss.add_all(when: 'CONFIG_TCG_MODULAR', if_true: tcg_module_ss)
-@@ -4174,10 +4170,6 @@ subdir('scripts')
+ target_modules += { 'accel' : { 'qtest': qtest_module_ss }}
+@@ -4456,10 +4452,6 @@ subdir('scripts')
  subdir('tools')
  subdir('pc-bios')
  subdir('docs')
diff --git a/utils/qemu/patches/0011-meson-fix.patch b/utils/qemu/patches/0011-meson-fix.patch
new file mode 100644 (file)
index 0000000..ab09e2a
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/configure
++++ b/configure
+@@ -1845,6 +1845,7 @@ if test "$skip_meson" = no; then
+   echo "# Automatically generated by configure - do not modify" > $cross
+   echo "[properties]" >> $cross
++  echo "needs_exe_wrapper = true" >> $cross
+   # unroll any custom device configs
+   for a in $device_archs; do